package com.ltmonitor.service.impl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ltmonitor.dao.ILineSegmentDao;
import com.ltmonitor.entity.LineSegment;
import com.ltmonitor.service.ILineSegmentService;

@Service("lineSegmentService")
public class LineSegmentService extends BaseService<Long, LineSegment> implements ILineSegmentService {

	@Autowired
	private ILineSegmentDao LineSegmentDao;
	

	public List<LineSegment> getLineSegments(long routeId) {
		String hql = "from LineSegment where routeId = ? and deleted = ?";
		List<LineSegment> result = this.query(hql, new Object[] {
				routeId, false });

		return result;
	}
	

}
